<?php echo $this->fetch('header.html'); ?>
<DIV class="main">
<?php echo $this->fetch('header.common.html'); ?>
<div class="content_info">
   <div class="about_head">
      <div class="about_title"><?php echo $this->_var['now_about']['title']; ?></div>
      <div class="about_nav" id="selectArea">导航</div>
   </div>
   <div class="about_content"><?php if ($this->_var['now_about']['content_wap']): ?><?php echo $this->_var['now_about']['content_wap']; ?><?php else: ?><?php echo $this->_var['now_about']['content']; ?><?php endif; ?></div>
</div>
<?php echo $this->fetch('footer.html'); ?>
</DIV> 
<div class="filter" id="filter">
  <div class="filter-bg" id="filterBg"><a id="slideClose"></a></div>
  <div class="filter-box" id="filterBody">
    <div id="areaList">
      <h5>导航分类</h5>
      <?php $_from = $this->_var['category_about']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'cate_about');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['cate_about']):
?>
      <?php if ($this->_var['cate_about']['can_show'] == 0): ?>
      <dl <?php if ($this->_var['now_about']['code'] == $this->_var['cate_about']['code']): ?>class=Choose<?php endif; ?>><span class="href"><a href="<?php echo url('app=article&act=abouts&code=' . $this->_var['cate_about']['code']. ''); ?>"><?php echo $this->_var['cate_about']['cate_name']; ?></a></span><?php if ($this->_var['cate_about']['list']): ?><span class="click_show <?php if ($this->_var['location']['0']['cate_id'] == $this->_var['key']): ?>active<?php endif; ?>" rel="<?php echo $this->_var['key']; ?>"></span><?php endif; ?></dl>
      <?php endif; ?>
      <?php if ($this->_var['cate_about']['list'] && $this->_var['cate_about']['can_show'] == 0): ?>
        <ul id="ul<?php echo $this->_var['key']; ?>" <?php if ($this->_var['location']['0']['cate_id'] == $this->_var['key']): ?>style="display:block"<?php endif; ?>>
        <?php $_from = $this->_var['cate_about']['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'cate_list');if (count($_from)):
    foreach ($_from AS $this->_var['cate_list']):
?>
        <?php if ($this->_var['cate_list']['can_show'] == 0): ?>
        <li <?php if ($this->_var['now_about']['code'] == $this->_var['cate_list']['code']): ?>class=Choose<?php endif; ?>><a href="<?php echo url('app=article&act=abouts&code=' . $this->_var['cate_list']['code']. ''); ?>"><?php echo $this->_var['cate_list']['cate_name']; ?></a></li>
        <?php endif; ?>
        <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
        </ul>
      <?php endif; ?>      
      <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
    </div>
  </div>
</div>
<script type="text/javascript" src="<?php echo $this->res_base . "/" . 'style/zepto.min.js'; ?>"></script>
<script language="javascript">
$(document).ready(function(){ 
  $("#filterBg").on("click", function(){hideFilter();});
  $("#slideClose").on("click", function(){hideFilter();});
  $("#selectArea").on("click", function(){
	  $(window).scroll(function(){
		  window.scrollTo(0, 0);
	  }).scroll();
	  $("#filter").show();
	  $("#filterBody").find("div").hide();
	  $("#areaList").show();
	  $("#filterBody").addClass("filter-box-on");
  }); 
  var hideFilter = function(){
	  $("#filterBody").removeClass("filter-box-on");
	  setTimeout(function(){
		  $("#filter").hide();
	  }, 400);
	  $(window).unbind("scroll");
  }  
  $(".click_show").click(function(){
	var this_id = $(this).attr("rel");
	$("#ul"+this_id).slideToggle("slow");
	if ($(this).hasClass('active')==false){
		$(this).addClass("active");
	}else{
		$(this).removeClass("active");
	}
  }); 
}); 
</script>
</body>
</html>